$("#logout").click(function() {
  var flag = confirm("确定要退出吗？");
  if (flag) {
    $.ajax({
      type: "post",
      url: "/logout",
      data: {},
      success: function() {
        location.href = "login.html";
      }
    });
  }
});
